<?php
    echo doctype();
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>
            <?php
                echo $this->lang->line('login_title_agent_info');
            ?>
        </title>
        <?php
            echo link_tag('css/agent_info.css');
        ?>
    </head>
    <body>
        <div id="container">
            <?php
                if($valid === TRUE)
                {
            ?>
            <div id="agent_name">
                <h1>
                    <?php
                        echo $account['last_name'];
                    ?>
                </h1>
                <h2>
                    <?php
                        echo $account['first_name'];
                    ?>
                </h2>
            </div>
            <div class="info_row">
                <div class="info_row_lbl">
                    <?php
                        echo $this->lang->line('login_user_name');
                    ?>
                </div>
                <div class="info_row_con">
                    <?php
                        echo $account['username'];
                    ?>
                </div>
            </div>
            <div class="row_space"></div>
            <div class="info_row">
                <div class="info_row_lbl">
                    <?php
                        echo $this->lang->line('login_address');
                    ?>
                </div>
                <div class="info_row_con">
                    <?php
                        echo $account['street_address'];
                    ?>
                </div>
            </div>
            <div class="info_row">
                <div class="info_row_lbl">
                    <?php
                        echo $this->lang->line('login_city');
                    ?>
                </div>
                <div class="info_row_con">
                    <?php
                        echo $account['city'];
                    ?>
                </div>
            </div>
            <div class="info_row">
                <div class="info_row_lbl">
                    <?php
                        echo $this->lang->line('login_state');
                    ?>
                </div>
                <div class="info_row_con">
                    <?php
                        echo $account['state'];
                    ?>
                </div>
            </div>
            <div class="info_row">
                <div class="info_row_lbl">
                    <?php
                        echo $this->lang->line('login_country');
                    ?>
                </div>
                <div class="info_row_con">
                    <?php
                        echo $country['name'] .' '. '(' . $country['abbreviation'].')';
                    ?>
                </div>
            </div>
            <div class="info_row">
                <div class="info_row_lbl">
                    <?php
                        echo $this->lang->line('login_zip_code');
                    ?>
                </div>
                <div class="info_row_con">
                    <?php
                        echo $account['zip'];
                    ?>
                </div>
            </div>
            <div class="row_space"></div>
            <div class="info_row">
                <div class="info_row_lbl">
                    <?php
                        echo $this->lang->line('login_services');
                    ?>
                </div>
                <div class="info_row_con" id="agent_services_con">
                    <?php
                        for($i = 0; $i < count($services); $i++)
                        {
                    ?>
                    <div class="service_box">
                    <?php
                            echo $services[$i]['title'] . '<br />';
                    ?>
                        <!--
                        <ul>
                            <li>
                                <?php
                                    echo $this->lang->line('login_served');
                                ?>
                            </li>
                            <li>
                                <?php
                                    echo $this->lang->line('login_missed');
                                ?>
                            </li>
                            <li>
                                <?php
                                    echo $this->lang->line('login_handling_time');
                                ?>
                            </li>
                        </ul>
                        -->
                    </div>
                    <?php
                        }
                    ?>
                </div>
            </div>
            <?php
                }
                else
                {
                    echo $this->lang->line('login_error');
                }
            ?>
        </div>
    </body>
</html>